<%@page import="com.wanmait.cookbook.vo.Admin"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    	String path = request.getContextPath();
    	Admin admin = (Admin)session.getAttribute("adm");
    	Boolean flag =(Boolean)session.getAttribute("flag");
    %>
    
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="<%=path %>/manage/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/manage/css/main.css"/>
    <script type="text/javascript" src="<%=path %>/manage/js/modernizr.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="<%=path%>/BackIndexServlet?action=init">首页</a></li>
                <li><a href="<%=path %>" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
            <%if(flag){ %>
                <li><a href="<%=path%>/AdminServlet?action=getAllAdmins">管理员管理</a></li>
            <% } %> 
				<li><a href="javascript:void(0)">欢迎管理员：<%=admin.getAccount() %></a></li>
                <li><a id="tuichu" href="<%=path%>/AdminServlet?action=exit">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
<script src="<%=request.getContextPath()%>/manage/js/jquery.min.js"></script>
<script>
	$(function(){
		
	})
</script>